
import {
  USER_LOGIN_SUCCESS,
  LOGIN_DEFEATED,
} from './constants'

/**
   * 定义登录成功的action
   * */
export const UserSuccessAction = (user) => ({
  type: USER_LOGIN_SUCCESS,
  payload: user,
})

/**
   * 定义登录失败的action
   * */
export const UserResetAction = () =>  ({
  type: LOGIN_DEFEATED,
})
